<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>产品管理</title>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/style.css" />
<script src="__PUBLIC__/js/jquery.js" type="text/javascript"></script>
<script src="__PUBLIC__/DatePicker/WdatePicker.js" type="text/javascript"></script>
<script src="__PUBLIC__/js/common.js" type="text/javascript"></script>
<script src="__PUBLIC__/js/vanadium.js" type="text/javascript"></script>
<script src="__PUBLIC__/js/inputcheck.js" type="text/javascript"></script>
<script charset="utf-8" src="__PUBLIC__/editor/kindeditor-min.js"></script>
<script charset="utf-8" src="__PUBLIC__/editor/lang/zh_CN.js"></script>
<script type="text/javascript">
    var editor;
    KindEditor.ready(function(K) {
        editor = K.create('#editor_id',{resizeType : 1,themeType : 'simple'});
    });
</script>
</head>
<body>
<div id="main">
    <form id="login-form" action="__URL__/edit" method="post" enctype="multipart/form-data">
        <input type="hidden" value="post" name="action" />
        <input type="hidden" value="{$info['id']}" name="fid" /> 
    <div class="nav">
        <em class="fn-left t-c"><a href="__URL__" title="添加">返 回</a></em>
        <input style="border: none" class="button01-out" type="submit" value="提 交" />
    </div>
    <div class="table_form">
        <table width="100%" class="table_form">
            <tr><th width="100">商品分类:</th><td>
                    <select name="classid" class=":required">
                        <option value="">选择分类</option>
                        {loop $class $vo}
                        <option value="{$vo['id']}" {if $vo['id'] == $info['classid']}selected="selected"{/if}>{$vo['cname']}</option>
                        {/loop}
                    </select>
                    <select name="specialid" class=":required">
                        <option value="">选择特性</option>
                        {loop $special $vo}
                        <option value="{$vo['id']}" {if $vo['id'] == $info['specialid']}selected="selected"{/if}>{$vo['cname']}</option>
                        {/loop}
                    </select></td></tr>
            <tr><th>商品名称:</th><td><input type="text" name="name" class=":required input-text" size="80" value="{$info['name']}" /><span class="hot">*</span></td></tr>
            <tr><th>商品图片:</th><td><input type="file" name="images" class="input-text" style="width:250px; height:25px"  /> <span class="help">图片格式:jpg、gif、png。限制大小：2M</span></td></tr>
            <tr><th>市场价格:</th><td><input type="text" name="marketprice"  class=":required :number input-text" size="10" value="{$info['marketprice']}" /><span class="hot">*</span> 输入货币格式</td></tr>
            <tr><th>优惠价格:</th><td><input type="text" name="userprice"  class=":required :number input-text" size="10" value="{$info['userprice']}" /><span class="hot">*</span> 输入货币格式</td></tr>
            <tr><th>支持换购:</th><td><input type="radio" value="2" name="vip" checked ="checked" /> 否&nbsp;&nbsp;<input type="radio" value="1" name="vip"<?php if($info['vip'] == 1) echo " checked =\" checked\""?> /> 是 <span class="hot">最多使用积分：</span><input type="text" name="vipprice"  class=":integer input-text" size="10" value="{$info['vipprice']}" /><span class="hot">*</span> 只能输入整数，10:1</td></tr>
            <tr><th>赠送积分:</th><td><input type="radio" value="2" name="give" checked ="checked" /> 否&nbsp;&nbsp;<input type="radio" value="1" name="give"<?php if($info['give'] == 1) echo " checked =\" checked\""?> /> 是 <span class="hot">最多赠送积分：</span><input type="text" name="givevip"  class=":integer input-text" size="10" value="{$info['givevip']}" /><span class="hot">*</span> 只能输入整数，10:1</td></tr>
            <tr><th>会员折扣:</th><td><input type="radio" value="2" name="discount" checked ="checked" /> 否&nbsp;&nbsp;<input type="radio" value="1" name="discount"<?php if($info['discount'] == 1) echo " checked =\" checked\""?> /> 是</td></tr>
            <tr><th>是否推荐:</th><td><input type="radio" value="2" name="best" checked ="checked" /> 否&nbsp;&nbsp;<input type="radio" value="1" name="best"<?php if($info['best'] == 1) echo " checked =\" checked\""?> /> 是</td></tr>
            <tr><th>下架日期:</th><td><input onClick="WdatePicker()" type="text" name="downdate" class=":required input-text input-date" size="20" value="{if $info['downdate']}{date('Y-m-d',$info['downdate'])}{/if}" readonly="readonly" /></td></tr>
            <tr><th>产品介绍:</th><td><textarea id="editor_id" name="content" style="width:100%;height:400px;">{htmlspecialchars($info['content'])}</textarea></td></tr>
            <tr><th>标题关键词(30):</th><td><input type="text" name="titlekey" class=":required :max_length;30 input-text" size="70" value="{$info['titlekey']}" /><span class="hot">*</span></td></tr>
            <tr><th>页面关键词(60):</th><td><textarea class=":required :max_length;80 input-text" name="keywords" rows="3" cols="100">{$info['keywords']}</textarea><span class="hot">*</span></td></tr>
            <tr><th>页面描述(120):</th><td><textarea class=":required :max_length;120 input-text" name="description" rows="4" cols="100">{$info['description']}</textarea><span class="hot">*</span></td></tr>          
            <tr><th>默认审核:</th><td><input type="radio" value="1" name="pass" checked ="checked" /> 是&nbsp;&nbsp;<input type="radio" value="2" name="pass"<?php if($info['pass'] == 2) echo " checked =\" checked\""?> /> 否 </td></tr>
            <tr><th>接受评论:</th><td><input type="radio" value="1" name="comment" checked ="checked" /> 是&nbsp;&nbsp;<input type="radio" value="2" name="comment"<?php if($info['comment'] == 2) echo " checked =\" checked\""?> /> 否 </td></tr>
        </table>
    </div>
    </form>
</div>
</body>
</html>